<?php /* Smarty version Smarty-3.1.11, created on 2013-07-24 13:38:48
         compiled from "C:\xampp\htdocs\novosite\conteudosModel\enquete.tpl" */ ?>
<?php /*%%SmartyHeaderCode:790451eb25ae799608-05816362%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '632b37b81374e7ac8e8a56c398173e940523c919' => 
    array (
      0 => 'C:\\xampp\\htdocs\\novosite\\conteudosModel\\enquete.tpl',
      1 => 1374683926,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '790451eb25ae799608-05816362',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_51eb25ae8365c5_81225176',
  'variables' => 
  array (
    'LADO' => 0,
    'QUESTAO' => 0,
    'URLEXECUTE' => 0,
    'URLATUAL' => 0,
    'OPCOES' => 0,
    'DADOS' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51eb25ae8365c5_81225176')) {function content_51eb25ae8365c5_81225176($_smarty_tpl) {?>        <div class="span3 margin10px padding10px <?php if ($_smarty_tpl->tpl_vars['LADO']->value=="direito"){?>floatRight<?php }?>">
            <div class="span12">
                <?php echo direcionaFuncoes(array('funcao'=>"getCaminhoPastaBanco",'classe'=>"imprimiConteudo"),$_smarty_tpl);?>

                <h5 class="marcador"><?php echo $_smarty_tpl->tpl_vars['QUESTAO']->value;?>
</h5><br />
                <form action="<?php echo $_smarty_tpl->tpl_vars['URLEXECUTE']->value;?>
banco/processaEnquete.php?url=<?php echo $_smarty_tpl->tpl_vars['URLATUAL']->value;?>
" method="post" >
                    <input name="id" name="id" value="1" style="display: none"/>
                    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['name'] = "i";
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['OPCOES']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total']);
?>
                        <label class="radio">
                            <input type="radio" name="optionsRadios" id="optionsRadios1" value="<?php echo $_smarty_tpl->tpl_vars['OPCOES']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_opcao'];?>
" <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['i']['index']==0){?>checked<?php }?>>
                            <p><?php echo $_smarty_tpl->tpl_vars['OPCOES']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['descricao'];?>
</p>
                        </label>
                    <?php endfor; endif; ?> 

                    <button class="btn-personalizado btn floatRight" type="submit" onclick="alert('Obrigado pelo seu Voto!');
                            javascript:_gaq.push(['_trackEvent', 'Enquete', 'voto']);" >&nbsp;Votar&nbsp;</button>
                    <a href="#modalVotacaoParcial" role="button" class="btn btn-personalizado" data-toggle="modal">Resultado Parcial</a>
                </form>
            </div>

            <div class="span12">
                &nbsp;
            </div>
            <div class="span12">
                <div id="modalVotacaoParcial" class="modal hide fade">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h3>Resultado Parcial</h3>
                    </div>
                    <div class="modal-body">
                        <div class="row-fluid">
                            <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['name'] = "i";
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['DADOS']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['total']);
?>
                                <div class="span10 offset0">
                                    <?php echo $_smarty_tpl->tpl_vars['DADOS']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['descricao'];?>

                                    <div class="progress progress-personalizado">
                                        <div class="bar " style="width: <?php echo $_smarty_tpl->tpl_vars['DADOS']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['percent'];?>
"><p class="corPreta paddingLeft5px"><?php echo $_smarty_tpl->tpl_vars['DADOS']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['percent'];?>
</p></div>
                                    </div>
                                </div>
                            <?php endfor; endif; ?> 
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button class="btn btn-personalizado" data-dismiss="modal" aria-hidden="true">Fechar</button>
                    </div>
                </div>
            </div>
        </div>
<?php }} ?>